﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.AutoMapper;
using FwProject.ShoppingMall.Commodity;

namespace FwProject.Commodity.Dto
{
    /// <summary>
    /// 商品评论没有图片
    /// </summary>
    [AutoMap(typeof(CommodityReviews))]
    public class CommodityReviewsInput
    {
        /// <summary>
        /// 商品编号
        /// </summary>
        public Guid Productid { get; set; }
        /// <summary>
        /// 评论内容
        /// </summary>
        [Required]
        [Display(Name = "评论内容")]
        public string RevicwsContent { get; set; }

        /// <summary>
        /// 描述相符评分0-5
        /// </summary>
        [Display(Name = "评分")]
        public int CommentScore { get; set; }

        /// <summary>
        /// 服务评分0-5
        /// </summary>
        [Required]
        public int ServiceCommentScore { get; set; }
        /// <summary>
        /// 订单编号
        /// </summary>
        [Required]
        public Guid OrderId { get; set; }
        /// <summary>
        /// 是否显示
        /// </summary>
        [Display(Name = "是否显示")]
        public bool IsShow { get; set; } = true;

        public List<CommodityReviewsImageInput> CommodityReviewsListImage { get; set; }
    }
}
